<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
</head>
<body>
    <div id="app">
        <div v-show="isShow">动态显示和隐藏</div>
        <div v-if="isCreated">动态创建和删除</div>
		<button @click="isShow=!isShow">1</button>
		<button @click="isCreated=!isCreated">2</button>
    </div>

    <script>
        let vm = new Vue({
            el: '#app',
            data: {
                isShow: true,
                isCreated: true
            }
        })
    </script>
</body>
</html>